package fit.deni.hibernate.interfaces;

import java.util.Collection;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import fit.deni.beans.Iznajmljivanje;

public interface IznajmljivanjeService {

	@CommitAfter
	public abstract void addRent(Iznajmljivanje i);
	
	@CommitAfter
	public void deleteRent(Iznajmljivanje i);

	public abstract Collection<Iznajmljivanje> getAll();

	public abstract Collection<Iznajmljivanje> getTop20();

	public Iznajmljivanje getRentById(int id);
	
}